package days48;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class exam {
    public static void main(String[] args) {
        Set<String>set=new HashSet<>();
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            set.add(scanner.next());
        }
        System.out.println(set.size());
    }
    public static void main1(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n= scanner.nextInt();
        int a=0;
        int b=1;
        int c=0;
        for (int i = 0; i < 10000; i++) {
            c=b+a;
            a=b;
            b=c;
            if(n>=a&&n<=b){
                System.out.println(Math.min(n-a,b-n));
                return;
            }
        }
    }
}
